import request from "@/utils/request";

// 获取渠道员工管理列表
export function channelUserList(query) {
    return request({
        url: "/pekingFish/channel-user/page",
        method: "get",
        params: query,
    });
}
// 新增渠道员工信息
export function addChannelUser(data) {
    return request({
        url: "/pekingFish/channel-user",
        method: "post",
        data: data,
    });
}

// 更新渠道员工信息
export function updateChannelUser(data) {
    return request({
        url: "/pekingFish/channel-user",
        method: "put",
        data: data,
    });
}

export function getService(phone) {
  return request({
    url: '/pekingFish/channel-user/getService?phone=' + phone,
    method: 'get'
  })
}

// 账号明细
export function rechargeDetailList(query) {
    return request({
        url: "/recharge/app-recharge-detail/page",
        method: "get",
        params: query,
    });
}
